package com.warm.pump.module.sys.controller;

import com.warm.pump.frame.shiro.ShiroUtils;
import com.warm.pump.module.sys.bean.po.gen.SysUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by guozj on 2017/5/12.
 */
public class AbstractController {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected SysUser getUser() {
        return ShiroUtils.getUserEntity();
    }

    protected Long getUserId() {
        return getUser().getUserId();
    }
}
